/*
 * @Author: 啊彪
 * @Date: 2021-08-25 19:59:27
 * @LastEditors: 啊彪
 * @LastEditTime: 2021-08-25 20:12:45
 * @Description: 单日累计
 * @FilePath: \fkxzg\src\model\statistics\singleDayCumu.model.ts
 */
import mongoose from 'mongoose';

const Schema = mongoose.Schema;
const SignleDayCumuSchema: mongoose.Schema = new Schema({
    roleId: { type: Number, display: '角色ID', index: true },
    nickName: { type: String, display: '角色昵称', index: true },
    serverId: { type: Number, display: '区服ID' },
    goldCoin: { type: String, display: '累计增加金币', default: 0 },
    dedGoldCoin: { type: String, display: '累计减少金币', default: 0 },
    diamond: { type: String, display: '累计增加钻石', default: 0 },
    dedDiamond: { type: String, display: '累计减少钻石', default: 0 },
    date: { type: String, display: '日期' },
}).index({ roleId: 1, date: 1 });

const SignleDayCumu = mongoose.model('SignleDayCumu', SignleDayCumuSchema);
export default SignleDayCumu;
